﻿<?php
defined('BASEPATH') or die ('No direct script access allowed');

/*
* 首页Controller
* 主要function index:默认action,
* 
*function Home 用于初始话 
* 
* 
* */
class Home  extends Controller {

	function Home()
	{
		parent::Controller();
        $this->load->model('home_model','h');
	}
	
	
	function index()
	{
        $data['page_view']="home/home_view";
        $data['page_data']=array("page_body"=>$this->h->get_d());
        $this->load->view("layout_view",$data);
        $this->db->insert('doi_user',array('name'=>'aaa'));
	}
	
	
}
